<div class="row">
    <div class="col-md-12">
        <div class="table-responsive">
            <table class="table table-primary table-striped">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>网站名称</th>
                        <th>网站logo</th>
                        <th>模板</th>
                        <th>备案号</th>
                        <th>状态</th>
                        <th>创建时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <volist name="list" id="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td><a href="http://{$vo.domain}" target="_blank">{$vo.title}</a></td>
                        <td><a href="{$vo.logo|imageUrl}" target="_blank"><img src="{$vo.logo|imageUrl}" height="18"/></a></td>
                        <td>{$vo.tid|getTemplate=title}</td>
                        <th>{$vo.record}</th>
                        <td>{$vo['status']?'正常':'<font color="red">禁用</font>'}</td>
                        <td>{$vo.createtime|dateFormat}</td>
                        <td>
                            <div class="btn-group">
                                <a href="/site/update?id={$vo.id}">修改</a>
                                <a href="/site/cache?id={$vo.id}">更新缓存</a>
                                <?php if($vo['id'] != C('sid')): ?>
                                <a href="/site/change?sid={$vo.id}">切换</a>
                                <?php endif; ?>
                            </div>
                        </td>
                    </tr>
                    </volist>
                </tbody>
            </table>
        </div>
    </div>
</div>
